print((67.5 + 89.0 + 12.9 + 32.2) / 4)
avg = (67.5 + 89.0 + 12.9 + 32.2) / 4
total = (67.5 - avg) ** 2 + (89.0 - avg) ** 2 + (12.9 - avg) ** 2 + (32.2 - avg) ** 2
result = total/4
print(result)
a = 10
a = 20
print(a)

a = 10
b = 20
a = b
print(a)
print(b)

a = 1.34
print(type(a))

a = 'hello '
print(type(a))
print(len(a))
b = 'world!'
print(a+b)

a = True
print(type(a))
b = False
print(type(b))

a = 10
print(type(a))
a = 'hello'
print(type(a))

#计算4个数字 67.5, 89.0, 12.9, 32.2 的方差
avg = (67.5 + 89.0 + 12.9 + 32.2) / 4
total = (67.5 - avg) ** 2 + (89.0 - avg) ** 2 + (12.9 - avg) ** 2 + (32.2 - avg) ** 2
result = total / 3
print(result)

print('hello')
a = 10
print(a)
b = True
print(b)
num = 10
print(f'num = {num}')
num = 0
num = input('请输入一个整数：')
print(f'你输入的整数是 {num}')

a = input('请输入第一个整数：')
b = input('请输入第二个整数：')
a = int(a)
b = int(b)
print(f'a + b = {a + b}')

print(10 / 0)

print(1 / 2)
print(7 % 2)
print(4 ** 2)
print(4 ** 0.5)
print(7 // 2)
print(-7 // 2)
a = 10
b = 20
print(a < b)
print(a <=b)
print(a > b)
print(a >= b)
print(a == b)
print(a != b)

a = 20
print(f'我的名字是张世洋 年龄{a}岁')

a = 'hello'
b = 'world'
print(a < b)
print(a <= b)
print(a > b)
print(a >= b)
print(a == b)
print(a != b)

print(0.1 + 0.2 == 0.3)

print(0.1)
print(0.2)
print(0.3)
print(0.1 + 0.2)

a = 0.1 + 0.2
b = 0.3
print(-0.000001< (a - b) < 0.000001)

a = 10
b = 20
c = 30
print(a < b and b < c)
print(a < b and b < c)
print(a > b or b > c)
print(a < b or b > c)
print(not a < b)
print(not a > b)
print(a < b < c)

print(10 > 20 and 10 / 0 == 1)
print(10 < 20 or 10 / 0 == 1)

a = 10
b = 20
a, b = b, a
print(f'a = {a}')
print(f'b = {b}')

a = 10
a = a + 1
print(a)
b = 10
b += 1
print(b)

print('test')